package com.xlh.thread;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Message;

import com.xlh.Utils.HttpHelper;

import com.xlh.conf.CommonConf;
import com.xlh.interf.IUiUpdateHandler;

import com.xlh.outside.MainActivity;
import com.xlh.outside.R;
import com.xlh.interf.IUiUpdateHandler;
public class CheckTelnetConnTask implements Runnable{
	 

	
	public Context context = null;

	
	
	public CheckTelnetConnTask(Context contxt){
		this.context = contxt;
	}
	
	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		 try {
			 
			 Message msg = new Message();
             String rest ="xxxx";
             Bundle data = new Bundle();
             //LogUtil.getIns(context).info("Login:server return data-"+rest);
     		 data.putString("rest", rest);
     		 msg.setData(data);
     		 
     		 ((IUiUpdateHandler)context).getHandler().sendMessage(msg);
     		 
		} catch (Exception e) {
			//LogUtil.getIns(context).info("Login:error-"+e.getMessage());
		}
	}}
